package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class AppType(private val value: Short, val tips: String) : IEnum<Short> {
    COUPON(1, "优惠券"),
    MEMBER(2, "会员"),
    COMMODITY_DISPATCH(3, "卖品配送"),
    E_TICKETING(4, "电子检票"),
    PAY_AFTER_WATCH(5, "先看后付"),
    AFTER_SALES(6, "售后服务"),
    ONLINE_GET_TICKET(7, "在线取票"),
    DOUYIN(8,"抖音团购");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}
